home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / povscn / level1 / pov / mappr2 < prev    next >
Text File  |  1995-11-08  |  1KB  |  65 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Image_map demonstration, shows various types of mapping
  3. // File by Alexander Enzmann
  4. // NOTE: Requires "test.gif"
  5.  
  6. #version 3.0
  7. global_settings { assumed_gamma 2.2 }
  8.  
  9. #include "colors.inc"
  10. #include "shapes.inc"
  11.  
  12. #declare Bi = 2.0
  13.  
  14. #declare Texture2 = /* Cylindrical image map */
  15. texture {pigment{image_map {gif "test.gif" map_type 2 once interpolate Bi } } }
  16.  
  17. #declare Texture5 = /* Torus image map */
  18. texture {pigment{image_map {gif "test.gif" map_type 5 interpolate Bi } } }
  19.  
  20. cylinder { <0,0,0>, y, 1
  21.    open
  22.    texture { Texture2 }
  23.    translate <0, -0.5, 0>
  24.    scale <7, 14, 7>
  25.    rotate <40, -60, 0>
  26.    translate <-12, 15, 20>
  27. }
  28.  
  29. object { Hyperboloid_Y
  30.    translate 1*y scale <1, 0.5, 1>
  31.    texture { Texture2 }
  32.    scale <1, 2, 1> translate <0, -1, 0>
  33.    clipped_by {box{<-2,-1,-2>,<2,1,2>} } bounded_by{clipped_by}
  34.    scale <5, 7, 5>
  35.    rotate <-40, -90, 0>
  36.    translate <-12, -15, 20>
  37. }
  38.  
  39. /* Torus having major radius = 6.4, minor radius = 3.5 */
  40.  
  41. torus { 6.4, 3.5
  42.    texture { Texture5 }
  43.    rotate -90*y
  44.    rotate -20*x
  45.    translate <12, 15, 20>
  46. }
  47.  
  48. object { Paraboloid_Y
  49.    texture { Texture2 }
  50.    clipped_by{box{<-2,0,-2>,<2,1,2>} } bounded_by{clipped_by}
  51.    translate <0, -0.5, 0>
  52.    scale <8, 16, 8>
  53.    rotate <-40, 0, 0>
  54.    translate <12, -15, 20>
  55. }
  56.  
  57. camera {
  58.    location  <0, 0, -90>
  59.    direction <0, 0,   1>
  60.    up        <0, 0.5, 0>
  61.    right     <0.6666, 0,  0>
  62. }
  63.  
  64. light_source {<0, 300, -200> colour White}
  65.